@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <script src="{{asset('dist/master/changeServicePeriod.js')}}"></script>
    <script>
        var service_period = {!! json_encode($service_period) !!};
        var weeks = {!! json_encode($weeks) !!};
        var hours = {!! json_encode($hours) !!};
    </script>
    <div class="ziliao">
        <form action="" method="post" id="form">
            {{csrf_field()}}
            <div class="ziliao_a mar02">
                <ul>
                    <li><span>服务时间</span></li>
                    <li><span>请选择周</span>
                        <p>
                            <select class="txt2 txtnobar" name="service_period[week_start]"><option value="">请选择</option>
                                <option v-for="(value,key) in weeks" :value="key">@{{ value }}</option>
                            </select>
                            <span style="width:10%;text-align:center;">至</span>
                            <select class="txt2 txtnobar" name="service_period[week_end]"><option value="">请选择</option>
                                <option v-for="(value,key) in weeks" :value="key">@{{ value }}</option>
                            </select>
                        </p></li>
                    <li><span>请选择时间</span>
                        <p>
                            <select class="txt2 txtnobar" name="service_period[time_start]"><option value="">请选择</option>
                                <option v-for="(value,key) in hours" :value="key">@{{ value }}</option>
                            </select>
                            <span style="width:10%;text-align:center;">至</span>
                            <select class="txt2 txtnobar" name="service_period[time_end]"><option value="">请选择</option>
                                <option v-for="(value,key) in hours" :value="key">@{{ value }}</option>
                            </select>
                        </p></li>
                </ul>

            </div>
            <button class="but07" type="submit">保存</button>
        </form>
    </div>
@endsection